package router

import (
	"gateway/basic/config"
	"gateway/handler/api"
	"gateway/middleware"
	"github.com/gin-gonic/gin"
)

func Address(v1 *gin.RouterGroup) {

	address := v1.Group("/address")
	{
		address.Use(middleware.JWTAuth(config.JWTKEY))
		address.POST("/addAddress", api.AddAddress)
		address.POST("/updateAddress", api.UpdateAddress)
		address.POST("/deleteAddress", api.DeleteAddress)
	}
}
